// 1. 导入express模块
const express = require('express')
// 6. 创建express对象
const app = express();

app.use(express.urlencoded({extended:false}));
app.post('/',(req,res)=>{
    console.log(req.body); //undefined
    // { sex: '123123123' }

    res.send('这是一条数据');
});

// 
app.listen(80,()=>{
    console.log("启动成功");
});